package cn.sxw.android.base.utils;

import cn.sxw.android.BuildConfig;
import cn.sxw.android.base.account.SAccountUtil;

/**
 * Created by ZengCS on 2019/1/16.
 * E-mail:zcs@sxw.cn
 * Add:成都市天府软件园E3-3F
 */

public class SPKeys {
    // public static final String KEY_REBOOT_FLAG = "KEY_REBOOT_FLAG";
    public static final String KEY_REBOOT_FLAG = "KEY_REBOOT_FLAG" + BuildConfig.VERSION_CODE;
    public static final String KEY_OVERLAY_SERVICE_RUNNING = "KEY_OVERLAY_SERVICE_RUNNING";
    public static final String KEY_CONNECT_SERVICE_RUNNING = "KEY_CONNECT_SERVICE_RUNNING";

    public class Account {
        public static final String IS_LOGIN = "IS_LOGIN";
        public static final String ACCOUNT_INFO = "ACCOUNT_INFO";
        public static final String ACCOUNT_BIND_INFO = "ACCOUNT_BIND_INFO";
        public static final String PUSH_CLIENT_ID = "PUSH_CLIENT_ID";
        public static final String KEY_LOGIN_CACHE_INFO = SAccountUtil.KEY_LOGIN_CACHE_INFO;
    }

    public static String getCustomKey(String key, String accountId) {
        return key + "_" + accountId;
    }
}
